package yscmd

import "context"

const FLAG_CFG_FILE_LONG = "gf.gcfg.file"

type FlagCfgFileBuilder struct {
	FlagBuilderCore
}

func (b *FlagCfgFileBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx)
	b.F.ConfigNodeName = ""
	b.F.Long = FLAG_CFG_FILE_LONG
	b.F.Description = `
        选择默认启动使用的配置文件`
	b.F.DefaultValue = "config.toml"
}

func FlagCfgFile(ctx context.Context) *Flag {
	build := &FlagCfgFileBuilder{}
	build.Init(ctx)
	return build.Flag()
}
